// pages/index.jsx
import { history } from "umi";
import "@/pages/p2/startgame.css";
import backgroundImage from "@/assets/p2/startgame.png";

const startgame = () => {
	return (
		<div
			className="background"
			style={{
				backgroundImage: `url(${backgroundImage})`,
			}}
		>
			<button
				className="btn"
				id="btn1"
				onClick={() => {
					history.push("/p1/dormitory");
				}}
			>
				开 始 游 戏
			</button>
		</div>
	);
};

export default startgame;
